
import request from '@/network/index'

export function login(data) {
  return request({
    url: '/api/sys/phoneLogin',
    method: 'post',
    data
  })
}

export function register(data) {
  return request({
    url: '/api/sys/register',
    method: 'post',
    data
  })
}

export function logout() {
  return request({
    url: '/api/sys/logout',
    method: 'get'
  })
}

export function customerInfo() {
  return request({
    url: '/api/customer/getInfo',
    method: 'get'
  })
}